import request from '@/utils/request'
import querystring from 'querystring'

//查询数据
export function settingInfo (params) {
  let queryString = querystring.stringify(params);
  return request({
    url: '/activiti/nodesetting/settingInfo?'+queryString,
    method: 'get',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    }
  })
}
  
//保存数据
export function save (params) {
  let url = '/activiti/nodesetting/save';
  return request({
    url: url,
    method: 'post',
    data: params
  })
}

//查询数据
export function findSettingInfo (params) {
  let queryString = querystring.stringify(params);
  return request({
    url: '/activiti/nodesetting/findSettingInfo?'+queryString,
    method: 'get',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    }
  })
}
